import request from '@/utils/request'



// 获取品牌数据的接口
export const reqTrademarkList = (page,limit)=>request.get(`/admin/product/baseTrademark/${page}/${limit}`)

// 添加品牌
export const reqAddOrUpdateTrademark = (data) =>{
    // 有id修改
    if(data.id){
        request.put('/admin/product/baseTrademark/update',data)
    }else{
        // 添加
        request.post('/admin/product/baseTrademark/save',data)
    }
}

// 删除品牌
export const reqDeleteTrademark = (id)=>request.delete(`/admin/product/baseTrademark/remove/${id}`)